<script language='javascript' type='text/javascript' src="<?=base_url('user_managements')?>scripts/user_management.js"></script>
<link rel="stylesheet" type="text/css" href="<?=base_url()?>application/assets/styles/calendar.css">
<script language='javascript' type='text/javascript' src="<?=base_url()?>application/assets/scripts/calendarpopup.js"></script>
<script language="javascript">
    var myCal=new CalendarPopup('div_cal');
    myCal.setCssPrefix('TEST');
    myCal.setDayHeaders("Sun","Mon","Tue","Wed","Thu","Fri","Sat");

</script>
<div id="div_cal" style="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></div>
<?if(isset($error_msg)) {?><center><div class="messageBox">{error_msg}</div></center><?}?>
<?php echo form_open(uri_string(), array('id' => 'frm_franchise')); ?>
<?if(get_flash_message()) {?><center><div class="messageBox"><?=get_flash_message()?></div></center><?}?>
<table border="0" cellspacing="0" cellpadding="0" class="infoTable">
    <tr>
        <td id='infoStr'>Họ tên <span class="required">(*)</span>:</td>
        <td id='infoInput' align='left'><input name="name" type="text" value="<?=h($name); ?>" size="50" maxlength="30" />
        <?=form_error('name');?></td>
    </tr>
    <tr>
        <td id='infoStr'>Tên đăng nhập <span class="required">(*)</span>:</td>
        <td id='infoInput' align='left'>
            <input name="login_name" type="text" value="<?=h($login_name); ?>" size="50" maxlength="50" />
            <?=form_error('login_name');?>
        </td>
    </tr>
    
    <tr>
        <td id='infoStr'>Password <?if(isset($add_new)) {?><span class="required">(*)</span><?}?>:</td>
        <td id='infoInput' align='left'>
            <input name="password" type="password" value="" size="50" maxlength="50" />
            <?=form_error('password');?>
        </td>
    </tr>
    <tr>
        <td id='infoStr'><nobr>Re-type Password <?if(isset($add_new)) {?><span class="required">(*)</span><?}?>:</nobr></td>
<td id='infoInput' align='left'>
    <input name="re_password" type="password" value="" size="50" maxlength="50" />
    <?=form_error('re_password');?>
</td>
</tr>
<tr>
    <td id='infoStr'>&nbsp;</td>
    <td id='infoInput' align='left'>
        <input type="submit" value="Save" class="save_button" />&nbsp;
        <input type="button" value="Cancel" class="cancel_button" onclick="user_management.cancel()" />
    </td>
</tr>
</table>
<?php echo '</form>'; ?>